package com.cutePet.pet.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import com.cutePet.pet.dao.ArticleDao;
import com.cutePet.pet.domain.ArticleDO;
import com.cutePet.pet.service.ArticleService;



@Service
public class ArticleServiceImpl implements ArticleService {
	@Autowired
	private ArticleDao articleDao;
	
	@Override
	public ArticleDO get(Long articleId){
		return articleDao.get(articleId);
	}
	
	@Override
	public List<ArticleDO> list(Map<String, Object> map){
		return articleDao.list(map);
	}
	
	@Override
	public int count(Map<String, Object> map){
		return articleDao.count(map);
	}
	
	@Override
	public int save(ArticleDO article){
		return articleDao.save(article);
	}
	
	@Override
	public int update(ArticleDO article){
		return articleDao.update(article);
	}
	
	@Override
	public int remove(Long articleId){
		return articleDao.remove(articleId);
	}
	
	@Override
	public int batchRemove(Long[] articleIds){
		return articleDao.batchRemove(articleIds);
	}
	
}
